{% extends 'base.html' %}
{% block title %}
    文章列表
{% endblock %}

{% block navbar %}
    {% include 'console/navbar_console.html' %}
{% endblock %}

{% block content %}

    <div class="container-fluid">
        <div class="row">
            {% include 'console/sidebar.html' %}

            <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                <div class="table-responsive">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>文章编号</th>
                            <th>标题</th>
                            <th>作者编号</th>
                            <th>操作1</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for x in notes %}
                            <tr>
                                <td>{{ x.id }}</td>
                                <td>{{ x.title }}</td>
                                <td>{{ x.user_id }}</td>
                                <td><a href="{{ url_for("admin.del_Note",id=x.id) }}">删除</a></td>
                            </tr>
                        {% endfor %}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
{% endblock %}